Efficient Retrieval of Subsumed Subgoals in Tabled Logic Programs

نویسندگان

  • Flávio Cruz
  • Ricardo Rocha
  • Miguel P. Correia
چکیده

Tabling based systems use call similarity to decide when a tabled subgoal should produce or consume answers. Most tabling engines do that by using variant checks. A more refined method, named call subsumption, considers that a subgoal A will consume answers from a subgoal B if A is subsumed by B, thus allowing greater answer reuse. Recently, we have developed an extension, called Retroactive Call Subsumption, that improves upon call subsumption by supporting bidirectional sharing of answers between subsumed/subsuming subgoals. In this paper, we present an algorithm to efficiently retrieve the set of currently evaluating subgoals that are subsumed by a more general subgoal.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Efficient instance retrieval of subgoals for subsumptive tabled evaluation of logic programs

Tabled evaluation is an implementation technique that solves some problems of traditional Prolog systems in dealing with recursion and redundant computations. Most tabling engines determine if a tabled subgoal will produce or consume answers by using variant checks. A more refined method, named call subsumption, considers that a subgoal A will consume from a subgoal B if A is subsumed by (an in...

متن کامل

Retroactive Subsumption-Based Tabled Evaluation of Logic Programs

Tabled evaluation is a recognized and powerful implementation technique that overcomes some limitations of traditional Prolog systems in dealing with recursion and redundant sub-computations. Tabling based systems use call similarity to determine if a tabled subgoal will produce their own answers or if it will consume from another subgoal. While call variance has been a very popular approach, c...

متن کامل

A Space Efficient Engine for Subsumption-Based Tabled Evaluation of Logic Programs

Tabled resolution improves e ciency as well as termination properties of logic programs by sharing answer computations across \similar" subgoals. Similarity based on subsumption of subgoals rather than variance (i.e., identity modulo variable renaming) promotes more aggressive sharing, but requires mechanisms to index answers from dynamically growing sets. Earlier we proposed Dynamic Threaded S...

متن کامل

On the Optimality of Scheduling Strategies in Subsumption-based Tabled Resolution

Subsumption-based tabled logic programming promotes more aggressive reuse of answer tables over variant-based tabling. However resolving subgoals against answers in tabled logic programming may require accessing incomplete answer tables (i.e., more answers remain to be added). In subsumption-based tabling it is far more efficient to retrieve from completed tables. Scheduling strategies promote ...

متن کامل

Depth - First : Improving Tabled Logic Programsthrough Alternative Scheduling Strategies ?

Tabled evaluations ensure termination of logic programs with nite models by keeping track of which subgoals have been called. Given several variant subgoals in an evaluation , only the rst one encountered will use program clause resolution; the rest uses answer resolution. This use of answer resolution prevents innnite looping which happens in SLD. Given the asynchronicity of answer generation ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010